#ifndef VIDEOCAPTURE_H
#define VIDEOCAPTURE_H


#include <QGLWidget>
#include <QImage>
#include <QPaintEvent>
#include "mythread.h"

class MyThread;

class VideoCapture:public QGLWidget
{
    Q_OBJECT
public:
    VideoCapture(MyThread *myThread, QWidget *parent);
    ~VideoCapture();
public slots:
    void animate(QImage image);
protected:
    void paintEvent(QPaintEvent *event);
private:
   MyThread *m_myThread;
   QImage m_image;
};

#endif // VIDEOCAPTURE_H
